package cn.sc.jedis.config;


/**
 * @ClassName RedisInfo
 * @Author 谢卓才
 * @Description redis链接信息
 * @Date 2022/11/13 9:17
 */
public class RedisInfo {

    private String host;

    private Integer port;

    private String password;

    private ClusterInfo cluster;

    private static RedisInfo globalRedisInfo;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public ClusterInfo getCluster() {
        return cluster;
    }

    public void setCluster(ClusterInfo cluster) {
        this.cluster = cluster;
    }

    public static RedisInfo getGlobalRedisInfo() {
        return globalRedisInfo;
    }

    public static void setGlobalRedisInfo(RedisInfo globalRedisInfo) {
        RedisInfo.globalRedisInfo = globalRedisInfo;
    }
}
